Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: t0112 cors testing #52

Merged
merged 2 commits into from
May 29, 2023
Merged

feat: t0112 cors testing #52

merged 2 commits into from
May 29, 2023

Conversation

laurentsenta
Copy link
Contributor

@laurentsenta laurentsenta commented May 18, 2023

  • implement t0112
  • implement missing sugar to deal with multiple headers
    • Previous Header checks have been augmented with IsUnique which was implicit before
    • Added Check for Has(strings), which makes a set comparison
    • Templated CheckNot to take any type of Check and return the negation

}

test.Run(t, tests)
}
Copy link
Contributor Author

@laurentsenta laurentsenta May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lidel I believe this is all we want to port from t0112, since the rest is related to the API, but please let me know if we missed something

Sharness test in kubo: https://github.com/ipfs/kubo/blob/da28fbc65a2e0f1ce59f9923823326ae2bc4f713/test/sharness/t0112-gateway-cors.sh

@laurentsenta laurentsenta mentioned this pull request May 18, 2023
20 tasks
tests/t0112_gateway_cors_test.go Show resolved Hide resolved
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @laurentsenta ❤️

lgtm, cosmetics below, but fine to merge

tests/t0112_gateway_cors_test.go Outdated Show resolved Hide resolved
tests/t0112_gateway_cors_test.go Outdated Show resolved Hide resolved
tests/t0112_gateway_cors_test.go Outdated Show resolved Hide resolved
Co-authored-by: Marcin Rataj <[email protected]>
@laurentsenta laurentsenta merged commit ad27deb into main May 29, 2023
@laurentsenta laurentsenta deleted the feat/t0112_cors branch May 29, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants